package com.banciyuan.bcywebview.biz.pwd;

import android.os.Bundle;
import android.view.View;

import com.banciyuan.bcywebview.R;
import com.banciyuan.bcywebview.base.activity.BaseActivity;
import com.banciyuan.bcywebview.biz.web.WebActivity;
import com.banciyuan.bcywebview.utils.intent.gotoUtil;

/**
 * Created by squall on 2016/8/29.
 */
public class FindPwdActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_findpwd_step1);


        findViewById(R.id.iv_cancle).setOnClickListener(this);
        findViewById(R.id.from_phone).setOnClickListener(this);
        findViewById(R.id.from_email).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_cancle:
                finish();
                break;
            case R.id.from_email:
                gotoUtil.replaceAct(this, WebActivity.class, getString(R.string.forget_pwd));
                break;
            case R.id.from_phone:
                gotoUtil.replaceAct(this, FindPwdStep2Activity.class);
                break;
        }
    }
}
